package com.zw.yzk.kabu.im;

import java.util.List;

import io.rong.imkit.DefaultExtensionModule;
import io.rong.imkit.plugin.IPluginModule;
import io.rong.imkit.widget.provider.FilePlugin;
import io.rong.imlib.model.Conversation;

/**
 * Created by zhanwei on 2017/5/22.
 */

public class CustomExtensionModule extends DefaultExtensionModule {

    @Override
    public List<IPluginModule> getPluginModules(Conversation.ConversationType conversationType) {
        List<IPluginModule> pluginModuleList = super.getPluginModules(conversationType);
        IPluginModule delete = null;
        for(IPluginModule pluginModule : pluginModuleList) {
            if (pluginModule instanceof FilePlugin) {
                delete = pluginModule;
                break;
            }
        }
        pluginModuleList.remove(delete);
        return pluginModuleList;
    }
}
